var deputeID = GetQueryString("id");
//显示版本号
var serialNumber = [100, 110];
document.getElementById("version0").innerHTML = "通知单编号: " + serialNumber[0];
document.getElementById("version1").innerHTML = "委托单编号: " + serialNumber[1];
//显示基本信息
var infomation = [];
for (let i = 0; i < 1; i++) {
    infomation[i] = document.getElementById("infomation" + i).children[0];
}
var infomationData = [
    [
        ["项目名称", "委托单位", "产品名称", "产品编号", "检测时间", "检测标准"],
        ["1", "2", "4", "3", "5", "6", "7", "8", "9", "0", "-", "="]
    ]
];
for (let j = 0; j < 1; j++) {
    for (let i = 0; i < infomationData[j][0].length; i++) {
        let tr = document.createElement("tr");
        if (i % 3 === 0) {
            infomation[j].appendChild(tr);
        }
        let td = document.createElement("td");
        td.setAttribute("class", "td-shadows");
        td.setAttribute("align", "center");
        td.innerHTML = infomationData[j][0][i];
        infomation[j].children[infomation[j].childElementCount - 1].appendChild(td);
        td = document.createElement("td");
        td.setAttribute("align", "center");
        td.innerHTML = infomationData[j][1][i];
        infomation[j].children[infomation[j].childElementCount - 1].appendChild(td);
    }
}

//显示检测结果
var tecTable = document.getElementById("workpieceTable");
var tecTitle = ["管线号", "焊缝编号", "底片编号", "规格", "焊工号", "缺陷性质", "缺陷位置", "缺陷尺寸", "评定等级", "合格"];
var tecInfomation = [
    ["FL032D-F034-023", "1-2", "105", "105", "105", "O108x6", "xxx型", "奥秘法", "这个还行", "合格"],
    ["FL032D-F034-023", "1-2", "105", "105", "105", "O108x6", "xxx型", "奥秘法", "这个还行", "不合格"]];
var workInner = "";
for (let i = 0; i < tecTitle.length; i++) {
    workInner += "<th>" + tecTitle[i] + "</th>";
    //let th = document.createAttribute("th");
    //th.innerHTML = workpieceTitle[i];
    //document.getElementById("workpieceTable").children[0].children[0].innerHTML(th);
}
document.getElementById("workpieceTable").children[0].children[0].innerHTML = workInner;
for (let i = 0; i < tecInfomation.length; i++) {
    let tr = document.createElement("tr");
    let inner = "";
    for (let j = 0; j < tecTitle.length; j++) {
        inner += "<td>" + tecInfomation[i][j] + "</td>";
    }
    tr.innerHTML = inner;
    tecTable.children[1].appendChild(tr);
}